import request from '@/utils/request'

// 查询竞赛申诉管理列表
export function listAppeal(query) {
  return request({
    url: '/race/appeal/list',
    method: 'get',
    params: query
  })
}

// 查询竞赛申诉管理详细
export function getAppeal(id) {
  return request({
    url: '/race/appeal/' + id,
    method: 'get'
  })
}

// 新增竞赛申诉管理
export function addAppeal(data) {
  return request({
    url: '/race/appeal',
    method: 'post',
    data: data
  })
}

// 修改竞赛申诉管理
export function updateAppeal(data) {
  return request({
    url: '/race/appeal',
    method: 'put',
    data: data
  })
}

// 删除竞赛申诉管理
export function delAppeal(id) {
  return request({
    url: '/race/appeal/' + id,
    method: 'delete'
  })
}

// 审核申诉
export function auditAppeal(data) {
  return request({
    url: '/race/appeal/audit',
    method: 'put',
    data: data
  })
}
